import request from "@/utils/request";

// 查询文章导入列表
export function listArticle_file(query) {
  return request({
    url: "/cms/article_file/list",
    method: "get",
    params: query,
  });
}

// 查询文章导入详细
export function getArticle_file(id) {
  return request({
    url: "/cms/article_file/" + id,
    method: "get",
  });
}

// 新增文章导入
export function addArticle_file(data) {
  return request({
    url: "/cmsArticleFile/uploadFile",
    method: "post",
    data: data,
  });
}

// 修改文章导入
export function updateArticle_file(data) {
  return request({
    url: "/cms/article_file",
    method: "put",
    data: data,
  });
}

// 删除文章导入
export function delArticle_file(id) {
  return request({
    url: "/cms/article_file/" + id,
    method: "delete",
  });
}
